package com.junmoo.www.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author dpwang
 */
@ToString
@EqualsAndHashCode(callSuper = false)
@Data
@Accessors(chain = true)
@TableName("sys_menu")
public class SysMenu extends BasicEntity  {
    @TableId(value = "menu_id",type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    private String menuName;

    private String menuCode;

    private String menuPath;

    private Long parentId;

    private String menuIcon;

    private Integer menuSort;

    private String menuType;
}
